package com.deltabot.master.boot;

import com.deltabot.master.heartbeatserver.cache;
import com.deltabot.master.masterservers.MasterServerQueryIW3;
import com.deltabot.master.masterservers.MasterServerQueryIW4;
import com.deltabot.master.masterservers.MasterServerQueryIW5;
import com.deltabot.master.masterservers.MasterServerQueryT3;
import com.deltabot.master.util.TimeKeeper;
import com.deltabot.master.webserver.server;

import static java.lang.Thread.sleep;

public class Main {



    public static void main(String[] args) {

       //Uncomment to load dummy servers -- for testing purposes
        /*
        for(int i = 1; i < 251; i++){
            cache.addServer("^1Test server ^2"+i,"133.71.33.7",String.valueOf(28960 + i),"mp_nuked","18","18","MW3","sd","NO","NO","UK");
        }
       */

        TimeKeeper tk = new TimeKeeper();
        tk.start();

        server Webserver = new server();
        Webserver.start();

        //THESE SERVER QUERY'S ARE FOR TESTING PURPOSES. THEY WILL NOT BE PRESENT IN THE RELEASE
        //ONLY DELTABOT ENABLED SERVERS WILL BE SHOWN ON THE SERVERLIST!

        MasterServerQueryIW3 queryIW3 = new MasterServerQueryIW3();
        queryIW3.IP = "63.146.124.21";
        queryIW3.port = 20810;
        queryIW3.protocol = 0;
        queryIW3.start();

        MasterServerQueryIW4 queryIW4 = new MasterServerQueryIW4();
        queryIW4.IP = "iw4.prod.fourdeltaone.net";
        queryIW4.port = 20810;
        queryIW4.start();

        MasterServerQueryIW5 queryIW5 = new MasterServerQueryIW5();
        queryIW5.IP = "iw5.prod.fourdeltaone.net";
        queryIW5.port = 27950;
        //queryIW5.start();

        MasterServerQueryT3 queryT3 = new MasterServerQueryT3();
        queryT3.IP = "63.146.124.21";
        queryT3.port = 20810;
        //queryT3.start();



    }
}
